package com.example.springboot.dto;

import com.example.springboot.entity.Menu;

import java.util.List;

/**
 * 接受前端登录请求的参数
 */
public class UserDTO {
    private Integer id;
    private String password;
    private String userAccount;
    private String userName;
    private String ip;
    private String token;
    private List<Menu> menus;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<Menu> getMenus() {
        return menus;
    }

    public void setMenus(List<Menu> menus) {
        this.menus = menus;
    }

    @Override
    public String toString() {
        return "UserDTO{" +
                "id=" + id +
                ", password='" + password + '\'' +
                ", userAccount='" + userAccount + '\'' +
                ", token='" + token + '\'' +
                ", menus=" + menus +
                '}';
    }
}
